package com.example.shop.controller.converter;

import com.example.shop.entity.Shop;
import com.example.shop.response.ShopResponse;
import com.example.shop.utils.BeanUtilsEx;
import org.springframework.stereotype.Service;

@Service
public class ShopDataConverter {

    public ShopResponse to(Shop shop) {
        ShopResponse response = new ShopResponse();
        BeanUtilsEx.copyProperties(shop, response);
        return response;
    }


}
